how to debug the program in Python